<h1>Evenement List</h1>

<table>
  <thead>
    <tr>
      <th>Id evenement</th>
      <th>Titre</th>
      <th>Description</th>
      <th>Date creation</th>
      <th>Date</th>
      <th>Visible</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($evenement_list as $evenement): ?>
    <tr>
      <td><a href="<?php echo url_for('evenement/edit?id_evenement='.$evenement->getIdEvenement()) ?>"><?php echo $evenement->getIdEvenement() ?></a></td>
      <td><?php echo $evenement->getTitre() ?></td>
      <td><?php echo $evenement->getDescription() ?></td>
      <td><?php echo $evenement->getDateCreation() ?></td>
      <td><?php echo $evenement->getDate() ?></td>
      <td><?php echo $evenement->getVisible() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<a href="<?php echo url_for('evenement/new') ?>">New</a>
